#ifndef CANSWERFORM_H
#define CANSWERFORM_H

#include <QWidget>

namespace Ui {
    class CAnswerForm;
}

class CAnswerForm : public QWidget
{
    Q_OBJECT

public:
    explicit CAnswerForm(QWidget *parent = 0);
    ~CAnswerForm();
    bool isRightAnswer() const;
    void setAnswer(QString answer);
    void setRightAnswer(bool checked);
    void setAnswerImg(QString img);
    QString getAnswer() const;
    QString getComment() const;
    void reset();
    void activate();

private:
    Ui::CAnswerForm *ui;

private: //methods
    bool eventFilter(QObject *obj, QEvent *event);

signals:
    void rightAnswerChecked(); //Поставлена/снята отметка на ответе
    void answerChanged(); //изменен ответ
    void commentChanged(); //изменен коментарий
    void answerClicked(CAnswerForm *answerForm);
};

#endif // CANSWERFORM_H
